<%--
  Created by IntelliJ IDEA.
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"
         pageEncoding="UTF-8" isELIgnored="false" import="java.util.*"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<head>
    <title>修改职员信息</title>
</head>
<body background="../gz.jpg">
<div class="container-fluid">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        ss</button> <a class="navbar-brand" href="adminmain.jsp">管理员主页</a>
                </div>
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li >
                            <a href="listEmployee" >查询全体职工</a>
                        </li>
                        <li >
                            <a href="adminadduser.jsp" >添加职员</a>
                        </li>
                    </ul>
                    <form action="listEmployeeByDept" class="navbar-form navbar-left"
                          method="post" role="search">
                        <div class="form-group">按部门查询：
                            <input class="form-control" type="text" name="deptid" />
                            <button type="submit" class="btn btn-default">
                                <span class="glyphicon glyphicon-search"></span> Search
                            </button>
                        </div>
                    </form>
                    <form action="getEmployee" class="navbar-form navbar-left"
                          method="post" role="search">
                        <div class="form-group">按员工号查询：
                            <input type="text" class="form-control" name="id"/>
                        </div>
                        <button type="submit" class="btn btn-default">
                            <span class="glyphicon glyphicon-search"></span> Search
                        </button>
                    </form>
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-th-list"></span><strong class="caret"></strong></a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../login.jsp">切换账号</a>
                                </li>
                                <li class="divider">
                                </li>
                                <li>
                                    <a href="../logout">退出系统</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </nav>
            <div class="col-md-4 column"></div>
            <div class="col-md-4 column">
                <br><br><br><br>
                ${Message}
                <form action="updateEmployee" method="post" >
                    <div class="panel panel-default" >
                    <div class="panel-heading">职工号</div>
                    <div class="panel-body">
                        <input class="form-control" readonly name="id" value=${employee.id}>
                    </div>
                    <div class="panel-heading">姓名</div>
                    <div class="panel-body">
                        <input type="text" class="form-control" name="name" value=${employee.name}>
                    </div>
                    <div class="panel-heading">部门号</div>
                    <div class="panel-body">
                        <input type="text" class="form-control" name="deptid" value=${employee.deptid}>
                    </div>
                    <div class="panel-heading">是否经理</div>
                    <div class="panel-body">
                        <select class="form-control" name="ismanager">
                            <option value="false">普通职工</option>
                            <option value="true">经理</option>
                        </select>
                    </div>
                    <div class="panel-heading">
                        <li>
                            <button type="submit" class="btn btn-default">提交修改</button>
                        </li>
                    </div>
                </div>
                </form>
            </div>

        </div>
    </div>
</div>
</body>
</html>
